package cn.funeralobjects.dictms.entity;

import cn.funeralobjects.common.annotations.UpdateTime;
import cn.funeralobjects.common.jpa.entity.BaseCloudJpaEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * @author FuneralObjects
 * Create date: 2020/6/2 10:50 PM
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@DynamicUpdate
@DynamicInsert
@Table(name = "t_dict")
@Entity
public class EDict extends BaseCloudJpaEntity<Integer> {
    /**
     * 备注
     */
    private String remark;
    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTime
    private Date updateTime;
}
